import axios from '@/libs/api.request'
// 优惠券列表
export const getCouponLists = data => axios.request({
  url: '/marketing/coupon/list',
  method: 'post',
  data
})

// 优惠券创建
export const saveCoupon = data => axios.request({
  url: '/marketing/coupon/save',
  method: 'post',
  data
})

// 优惠券修改
export const updateCoupon = data => axios.request({
  url: '/marketing/coupon/update',
  method: 'post',
  data
})

// 优惠券详情
export const getCoupon = data => axios.request({
  url: '/marketing/coupon/get',
  method: 'post',
  data
})

// 优惠券删除
export const delCoupon = data => axios.request({
  url: '/marketing/coupon/delete',
  method: 'post',
  data
})

// 优惠券启用停用
export const doCouponStatus = data => axios.request({
  url: '/marketing/coupon/status/update',
  method: 'post',
  data
})
